package bean;

public class Worker {
    private int workerId;
    private String workerName;
    private int sex;
    private String telephone;
    private Integer projectId;
    private Project project;

    public Worker() {
    }

    public Worker(int workerId, String workerName, int sex, String telephone, Integer projectId) {
        this.workerId = workerId;
        this.workerName = workerName;
        this.sex = sex;
        this.telephone = telephone;
        this.projectId = projectId;
    }

    public int getWorkerId() {
        return workerId;
    }

    public void setWorkerId(int workerId) {
        this.workerId = workerId;
    }

    public String getWorkerName() {
        return workerName;
    }

    public void setWorkerName(String workerName) {
        this.workerName = workerName;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }
}
